﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using RestaurantApp.Web.Infrastructure;

namespace Loyalty.UI.Infrastructure
{
    public class RandomString
    {
        private Random _random = new Random(Environment.TickCount);
        public string RandomStringCreat(int size)
        {
            string chars = "0123456789abcdefghijklmnopqrstuvwxyz";
            StringBuilder builder = new StringBuilder(size);
            for (int i = 0; i < size; ++i)
                builder.Append(chars[_random.Next(chars.Length)]);
            return builder.ToString().GetGUID().ToString();
        }
    }
}